﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace RkLibs.DbOperate
{
    public interface IDatabase
    {
#region 属性
        /// <summary>
        /// 数据库文件路径
        /// </summary>
        string DatabaseFilePath { set; get; }
#endregion

#region 方法
        /// <summary>
        /// 获取全部数据
        /// </summary>
        /// <returns></returns>
        DataTable GetAllData(string tableName);
        /// <summary>
        /// 读数据
        /// </summary>
        /// <param name="cmmand">sql语句</param>
        /// <returns></returns>
        DataTable ExecuteReader(string cmmand);
        /// <summary>
        /// 执行一个insert update delete操作
        /// </summary>
        /// <param name="queryString">sql语句</param>
        int ExecuteNonQuery(string queryString);
        void CloseDatabase();
#endregion

    }
}
